import axios from 'axios';

const uri = '192.168.64.198' || 'localhost';

export const baseUrl = `http://${uri}:3000`;

//axios 的实例及拦截器配置
const axiosInstance = axios.create ({
    baseURL: baseUrl
});

axiosInstance.interceptors.response.use (
    res => res.data,
    err => {
      console.log (err, "网络错误");
    }
);
  
  export {
    axiosInstance
};

